<% content_for :title do %>
  Sign up as a new user
<% end %>

<% content_for :subtitle do %>
  <% if @user.errors.count.zero? %>
    (your information will not be shared anywhere)
  <% else %>
    <%= error_messages_for(:user, :header_message => nil, :message => nil).untaint %>
  <% end %>
<% end %>

<% @user.password = @user.password_confirmation = nil %>

<% form_for :user, :url => users_path do |f| -%>
  <p><%= label_tag 'login' %><br/>
  <%= f.text_field :login %></p>

  <p><%= label_tag 'email' %><br/>
  <%= f.text_field :email %></p>

  <p><%= label_tag 'password' %><br/>
  <%= f.password_field :password %></p>

  <p><%= label_tag 'password_confirmation', 'Confirm Password' %><br/>
  <%= f.password_field :password_confirmation %></p>

  <p><%= submit_tag 'Sign up' %></p>
<% end -%>
